package com.xuecheng.feignclient;

import com.xuecheng.po.CoursePublish;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 内容管理服务远程接口
 */
@FeignClient(value = "content-api", fallbackFactory = ContentServiceClientFallbackFactory.class)
@RequestMapping("/content")
public interface ContentServiceClient {
	
	@GetMapping("/r/coursepublish/{courseId}")
	CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);
	
}
